<!-- Layout 母模板 -->
<% extend('../template/layout.art') %>


    <!-- 标题 -->
    <% block('title', function(){ %>首页
        <% }) %>

            <!-- 描述 -->
            <% block('description', function(){ %>
                <% }) %>

                    <!-- CSS & JS -->
                    <% block('head', function(){ %>
                        <% }) %>

                            <!-- body -->
                            <% block('content', function(){ %>
                                <% include('../template/nav.art') %>
                                    <% include('../template/side_menu.art') %>
                                        <div jepane="center" class="je-admin-center" tabpane>

                                        </div>
                                        <div jepane="right" class="je-admin-right"></div>
                                        <div jepane="bottom" class="je-admin-bottom">
                                            <p>2017 © 索葛票务</p>
                                        </div>

                                        <script type="text/javascript">
                                            jeui.use(["jquery", "jeBox", "jeLayout", "jeTabPane", "jeAccordion", "jeCheck", "jeDate", "jeNavTab", "jeProgress", "jeSelect", "jeDropdown", "jeTable"], function() {
                                                //Layout面板布局
                                                $("body").jeLayout();
                                                $("#myTabNav").find("li").on("click", function() {
                                                    $(this).addClass('curr').siblings().removeClass('curr');
                                                });
                                                //折叠菜单
                                                $(".je-admin-menu").jeAccordion({
                                                    accIndex: 0,
                                                    titCell: "h3",
                                                    conCell: "ul",
                                                    multiple: true,
                                                    success: function(titelem, conelem) {
                                                        //给菜单绑定事件
                                                        conelem.children().on("click", function() {
                                                            conelem.children().removeClass("current");
                                                            $(this).addClass("current");
                                                        });
                                                    }
                                                });
                                                //addtabs
                                                $("[tabpane]").jeTabPane({
                                                    firstItem: { //默认首页
                                                        tab: "main",
                                                        text: "散票购买",
                                                        url: "sale/personal.html",
                                                        closable: false
                                                    }
                                                });
                                            });
                                        </script>
                                        <% }) %>